package com.gec.dao;

import com.gec.domain.ProcessConfig;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

public interface ProcessConfigDao {
    int addProcessConfig(ProcessConfig p);

    //{2}获取最新版本的流程布署信息
    ProcessConfig getProcessByCategory(@RequestParam("category") String category);

    List<ProcessConfig> getProcessConfigs(Map<String, String> map) ;

    ProcessConfig getProcessConfigById(String id);

    int delProcessConfigById(String id);
}
